//
//  NewFile_viewController.swift
//  AIMobileOfficeiOSApp
//
//  Created by 邓杰 on 2018/6/26.
//  Copyright © 2018年 AIMobileOffice. All rights reserved.
//

import UIKit

class NewFile_viewController: UIViewController {    
    var images:[PPT_image]=[
        PPT_image(imageName: "cafedeadend.jpg"),
        PPT_image(imageName: "homei.jpg"),
        PPT_image(imageName: "teakha.jpg"),
        PPT_image(imageName: "cafeloisl.jpg"),
        PPT_image(imageName: "petiteoyster.jpg"),
        PPT_image(imageName: "forkeerestaurant.jpg"),
        PPT_image(imageName: "posatelier.jpg"),
        PPT_image(imageName: "bourkestreetbakery.jpg"),
        PPT_image(imageName: "haighschocolate.jpg"),
        PPT_image(imageName: "palominoespresso.jpg"),
        PPT_image(imageName: "upstate.jpg"),
        PPT_image(imageName: "traif.jpg"),
        PPT_image(imageName: "grahamavenuemeats.jpg"),
        PPT_image(imageName: "wafflewolf.jpg"),
        PPT_image(imageName: "fiveleaves.jpg"),
        PPT_image(imageName: "cafelore.jpg"),
        PPT_image(imageName: "confessional.jpg"),
        PPT_image(imageName: "barrafina.jpg"),
        PPT_image(imageName: "donostia.jpg"),
        PPT_image(imageName: "royaloak.jpg"),
        PPT_image(imageName: "caskpubkitchen.jpg")
    ]
    let name="hello"
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBAction func presentationButton_press()
    {
        let mainStoryboard:UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
        let desVC = mainStoryboard.instantiateViewController(withIdentifier: "image_viewController") as! image_viewController
        desVC.images_s=self.images
        self.navigationController?.pushViewController(desVC, animated: true)
       // self.performSegue(withIdentifier: "goto_imageView", sender: nil)
        self.tabBarController?.hidesBottomBarWhenPushed=true
        self.tabBarController?.tabBar.isHidden=true
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
